<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>bg</title>
    <style type="text/css">
        .box{
            width: 800px;
            height: 800px;
            border: #dddddd 1px solid;
            background-image: url("../images/cola.jpeg") ;
            background-repeat: no-repeat; /* 图片不重复平铺 */
            background-size: cover; /* 覆盖 */

        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>